import req from '@/utils/request';

// 获取SKU数量列表 接口： /admin/product/list/{page}/{limit}
export const reqSkuList = (page,limit) => req.get(`/admin/product/list/${page}/${limit}`)

// 获取上架数据 接口： /admin/product/onSale/${skuId}
export const reqOnSale = (skuId) => req.get(`/admin/product/onSale/${skuId}`)

// 获取下架数据 接口： /admin/product/cancelSale/{skuId}
export const reqCancelSale = (skuId) => req.get(`/admin/product/cancelSale/${skuId}`)

// 获取SKU信息 接口： /admin/product/getSkuById/{skuId}
export const reqSkuInfo = (skuId) => req.get(`/admin/product/getSkuById/${skuId}`)

// 删除 SKU 信息 接口： /admin/product/deleteSku/{skuId}
export const reqDeleteSkuInfo = (skuId) => req.delete(`/admin/product/deleteSku/${skuId}`)

